package com.worthtech.billportal.bean;

/**
 * SmsListView entity. @author MyEclipse Persistence Tools
 */

public class SmsListView implements java.io.Serializable {

	// Fields

	private Integer id;
	private String mobiles;
	private String content;
	private String sendinfo;
	private String crtDate;
	private String rtDate;
	private String proInfo;
	private String trace;
	private String url;
	private String pt;
	private String mercode;

	// Constructors

	/** default constructor */
	public SmsListView() {
	}

	/** minimal constructor */
	public SmsListView(Integer id, String mobiles, String content,
			String sendinfo, String crtDate, String pt, String mercode) {
		this.id = id;
		this.mobiles = mobiles;
		this.content = content;
		this.sendinfo = sendinfo;
		this.crtDate = crtDate;
		this.pt = pt;
		this.mercode = mercode;
	}

	/** full constructor */
	public SmsListView(Integer id, String mobiles, String content,
			String sendinfo, String crtDate, String rtDate, String proInfo,
			String trace, String url, String pt, String mercode) {
		this.id = id;
		this.mobiles = mobiles;
		this.content = content;
		this.sendinfo = sendinfo;
		this.crtDate = crtDate;
		this.rtDate = rtDate;
		this.proInfo = proInfo;
		this.trace = trace;
		this.url = url;
		this.pt = pt;
		this.mercode = mercode;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getMobiles() {
		return this.mobiles;
	}

	public void setMobiles(String mobiles) {
		this.mobiles = mobiles;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getSendinfo() {
		return this.sendinfo;
	}

	public void setSendinfo(String sendinfo) {
		this.sendinfo = sendinfo;
	}

	public String getCrtDate() {
		return this.crtDate;
	}

	public void setCrtDate(String crtDate) {
		this.crtDate = crtDate;
	}

	public String getRtDate() {
		return this.rtDate;
	}

	public void setRtDate(String rtDate) {
		this.rtDate = rtDate;
	}

	public String getProInfo() {
		return this.proInfo;
	}

	public void setProInfo(String proInfo) {
		this.proInfo = proInfo;
	}

	public String getTrace() {
		return this.trace;
	}

	public void setTrace(String trace) {
		this.trace = trace;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getPt() {
		return this.pt;
	}

	public void setPt(String pt) {
		this.pt = pt;
	}

	public String getMercode() {
		return this.mercode;
	}

	public void setMercode(String mercode) {
		this.mercode = mercode;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof SmsListView))
			return false;
		SmsListView castOther = (SmsListView) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getMobiles() == castOther.getMobiles()) || (this
						.getMobiles() != null
						&& castOther.getMobiles() != null && this.getMobiles()
						.equals(castOther.getMobiles())))
				&& ((this.getContent() == castOther.getContent()) || (this
						.getContent() != null
						&& castOther.getContent() != null && this.getContent()
						.equals(castOther.getContent())))
				&& ((this.getSendinfo() == castOther.getSendinfo()) || (this
						.getSendinfo() != null
						&& castOther.getSendinfo() != null && this
						.getSendinfo().equals(castOther.getSendinfo())))
				&& ((this.getCrtDate() == castOther.getCrtDate()) || (this
						.getCrtDate() != null
						&& castOther.getCrtDate() != null && this.getCrtDate()
						.equals(castOther.getCrtDate())))
				&& ((this.getRtDate() == castOther.getRtDate()) || (this
						.getRtDate() != null
						&& castOther.getRtDate() != null && this.getRtDate()
						.equals(castOther.getRtDate())))
				&& ((this.getProInfo() == castOther.getProInfo()) || (this
						.getProInfo() != null
						&& castOther.getProInfo() != null && this.getProInfo()
						.equals(castOther.getProInfo())))
				&& ((this.getTrace() == castOther.getTrace()) || (this
						.getTrace() != null
						&& castOther.getTrace() != null && this.getTrace()
						.equals(castOther.getTrace())))
				&& ((this.getUrl() == castOther.getUrl()) || (this.getUrl() != null
						&& castOther.getUrl() != null && this.getUrl().equals(
						castOther.getUrl())))
				&& ((this.getPt() == castOther.getPt()) || (this.getPt() != null
						&& castOther.getPt() != null && this.getPt().equals(
						castOther.getPt())))
				&& ((this.getMercode() == castOther.getMercode()) || (this
						.getMercode() != null
						&& castOther.getMercode() != null && this.getMercode()
						.equals(castOther.getMercode())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getMobiles() == null ? 0 : this.getMobiles().hashCode());
		result = 37 * result
				+ (getContent() == null ? 0 : this.getContent().hashCode());
		result = 37 * result
				+ (getSendinfo() == null ? 0 : this.getSendinfo().hashCode());
		result = 37 * result
				+ (getCrtDate() == null ? 0 : this.getCrtDate().hashCode());
		result = 37 * result
				+ (getRtDate() == null ? 0 : this.getRtDate().hashCode());
		result = 37 * result
				+ (getProInfo() == null ? 0 : this.getProInfo().hashCode());
		result = 37 * result
				+ (getTrace() == null ? 0 : this.getTrace().hashCode());
		result = 37 * result
				+ (getUrl() == null ? 0 : this.getUrl().hashCode());
		result = 37 * result + (getPt() == null ? 0 : this.getPt().hashCode());
		result = 37 * result
				+ (getMercode() == null ? 0 : this.getMercode().hashCode());
		return result;
	}

}